import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description:
 * User:Lenovo
 * Date:2024-12-12
 * Time:19:34
 */
public class Text {
    public static void main(String[] args) {
        Scanner san = new Scanner(System.in);
       while (san.hasNextLine()) {
           char a = san.next().charAt(0);
//           san.next().charAt(0);
           char b = san.next().charAt(0);
           System.out.println((char)(a+32));
           System.out.println((char)(b+32));
       }
    }
}
